//-----------------------------------------------------------------------
// <copyright file="HistoryBase.cs" company="Pyramid Consulting">
//     Copyright (c) Pyramid Consulting. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace BirthdayReminder.Entities
{
	[Serializable]
	public class HistoryBase
	{
		
		#region Variable Declarations
		private int				historyId = 0;
		private int				receiverId = 0;
		private int				senderId = 0;
		private string				message = string.Empty;
		private DateTime				creationDate = new DateTime(1900,1,1,0,0,0,0);
		#endregion
		
		#region Constructors
		public HistoryBase() {}
		
		public HistoryBase (
			int historyId,
			int receiverId,
			int senderId,
			string message,
			DateTime creationDate)
		
		{
			this.historyId = historyId;
			this.receiverId = receiverId;
			this.senderId = senderId;
			this.message = message;
			this.creationDate = creationDate;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int HistoryId
		{
			get { return historyId; }
			set { historyId = value; }
		}
			
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int ReceiverId
		{
			get { return receiverId; }
			set { receiverId = value; }
		}
			
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int SenderId
		{
			get { return senderId; }
			set { senderId = value; }
		}
			
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Message
		{
			get { return message; }
			set { message = value; }
		}
			
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime CreationDate
		{
			get { return creationDate; }
			set { creationDate = value; }
		}
			
		
		#endregion
	}//End Class
	
	public enum HistoryColumns
	{
		HistoryId,
		ReceiverId,
		SenderId,
		Message,
		CreationDate
	}//End enum
}